package com.example.anydo.bean;

import java.io.Serializable;

public class SubTaskBean implements Serializable {

    int code;
    String msg;
    DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Serializable{
        private int id;
        private int taskId;
        private String title;
        private String ifDone = "否";

        public DataBean(){

        }
        public DataBean(int id, int taskId, String title, String ifDone) {
            this.id = id;
            this.taskId = taskId;
            this.title = title;
            this.ifDone = ifDone;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getTaskId() {
            return taskId;
        }

        public void setTaskId(int taskId) {
            this.taskId = taskId;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getIfDone() {
            return ifDone;
        }

        public void setIfDone(String ifDone) {
            this.ifDone = ifDone;
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "id=" + id +
                    ", taskId=" + taskId +
                    ", title='" + title + '\'' +
                    ", ifDone='" + ifDone + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "SubTaskBean{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
